<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>N3RD CH4T: Server Class Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">N3RD CH4T
   &#160;<span id="projectnumber">Final Version</span>
   </div>
   <div id="projectbrief">CS340 Project</div>
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-slots">Public Slots</a> &#124;
<a href="#signals">Signals</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pro-methods">Protected Member Functions</a> &#124;
<a href="#pri-methods">Private Member Functions</a> &#124;
<a href="#pri-attribs">Private Attributes</a>  </div>
  <div class="headertitle">
<div class="title">Server Class Reference</div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="Server" -->
<p><a class="el" href="class_server.html" title="Server helper methods.">Server</a> helper methods.  
 <a href="class_server.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="server_8h_source.html">server.h</a>&gt;</code></p>

<p><a href="class_server-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-slots"></a>
Public Slots</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab29aa2a33dd2662e95c5485b9bcec694"></a><!-- doxytag: member="Server::handleIncomingData" ref="ab29aa2a33dd2662e95c5485b9bcec694" args="()" -->
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_server.html#ab29aa2a33dd2662e95c5485b9bcec694">handleIncomingData</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Slot that gets called whenever there is incoming data from any socket to the server. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a782b2d9f22711ac0cca57e990dfb83d0"></a><!-- doxytag: member="Server::handleDisconnection" ref="a782b2d9f22711ac0cca57e990dfb83d0" args="()" -->
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_server.html#a782b2d9f22711ac0cca57e990dfb83d0">handleDisconnection</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Slot that gets called whenever a client disconnects from the server. <br/></td></tr>
<tr><td colspan="2"><h2><a name="signals"></a>
Signals</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_server.html#afd11d6dc30d6fdf3ad5b30feb0c5c4ff">removeFriend</a> (<a class="el" href="classclient_information.html">clientInformation</a> *personSendingRequest, bool isValidRequest)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Signal sent to remove friend.  <a href="#afd11d6dc30d6fdf3ad5b30feb0c5c4ff"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_server.html#aa15d49a10e81b6c5f523f02663cdfb9d">sendIsValidRemoveFriendRequest</a> (QString personToRemove, bool isValidRequest)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Signal to check if the remove request was valid.  <a href="#aa15d49a10e81b6c5f523f02663cdfb9d"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_server.html#a4632a3440adaece614f553e84fcc67ef">addFriend</a> (QString personSendingRequest)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Signal sent to add a friend.  <a href="#a4632a3440adaece614f553e84fcc67ef"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_server.html#a90fbc824ea7de283a02a268b510fd6f2">sendIsValidFriendRequest</a> (QString personToAdd, bool isValid)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Signal sent to check if the friend request was valid or not.  <a href="#a90fbc824ea7de283a02a268b510fd6f2"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_server.html#a21329e064df7799d50e7d54a4b77f1d9">confirmFriendRequest</a> (<a class="el" href="classclient_information.html">clientInformation</a> *sentUser, bool isAccepted)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Signal sent to confirm friend request.  <a href="#a21329e064df7799d50e7d54a4b77f1d9"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_server.html#ac46199c15eb4e607a039567c5cce900e">sendMessage</a> (QString fromUser, QString toUser, QString message, QString timeSentAt)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Signal to send message.  <a href="#ac46199c15eb4e607a039567c5cce900e"></a><br/></td></tr>
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a1950ac036d86af898428d7ba39bbf048"></a><!-- doxytag: member="Server::Server" ref="a1950ac036d86af898428d7ba39bbf048" args="(QObject *parent=0)" -->
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_server.html#a1950ac036d86af898428d7ba39bbf048">Server</a> (QObject *parent=0)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="class_server.html" title="Server helper methods.">Server</a> Constructor. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_server.html#a4d28bcf39a54fac77bbd48872035e2c6">startServer</a> (QHostAddress addr, quint16 port)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Starts the server with the parameters passed in. Returns bool if successful or not.  <a href="#a4d28bcf39a54fac77bbd48872035e2c6"></a><br/></td></tr>
<tr><td colspan="2"><h2><a name="pro-methods"></a>
Protected Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_server.html#afeda4b86ff6555c7a5bb012d2f464d19">incomingConnection</a> (int handle)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Implements incomingConnection(handle) method in QTcpServer to handle any incoming connections.  <a href="#afeda4b86ff6555c7a5bb012d2f464d19"></a><br/></td></tr>
<tr><td colspan="2"><h2><a name="pri-methods"></a>
Private Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a6851a20573fcaed7ffc102da9521be61"></a><!-- doxytag: member="Server::handleIsValidUserName" ref="a6851a20573fcaed7ffc102da9521be61" args="(QTcpSocket *personThatSentData, QString nameOfUser, bool isValidUsername)" -->
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_server.html#a6851a20573fcaed7ffc102da9521be61">handleIsValidUserName</a> (QTcpSocket *personThatSentData, QString nameOfUser, bool isValidUsername)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Method to check if the username sent was valid or not...deciding on whether or not to use. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7261fe162d0d8492ca633965437ba00c"></a><!-- doxytag: member="Server::handleIncomingFriendRequest" ref="a7261fe162d0d8492ca633965437ba00c" args="(QString personSendingRequest, QString personRecievingRequest, bool isValid)" -->
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_server.html#a7261fe162d0d8492ca633965437ba00c">handleIncomingFriendRequest</a> (QString personSendingRequest, QString personRecievingRequest, bool isValid)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Method to handle an incoming friend add request, Parameters are self-explanatory. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a0b5693825a399b5cf40e4e340e8b5b6b"></a><!-- doxytag: member="Server::handleIncomingRemoveFriendRequest" ref="a0b5693825a399b5cf40e4e340e8b5b6b" args="(QString personSendingRequest, QString personToRemove)" -->
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_server.html#a0b5693825a399b5cf40e4e340e8b5b6b">handleIncomingRemoveFriendRequest</a> (QString personSendingRequest, QString personToRemove)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Method to handle an incoming friend remove request, Parameters are self-explanatory. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a4271c40116b94faaf57a6e75fa545f37"></a><!-- doxytag: member="Server::updateUsers" ref="a4271c40116b94faaf57a6e75fa545f37" args="()" -->
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_server.html#a4271c40116b94faaf57a6e75fa545f37">updateUsers</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Iterates over the users connected and sends out the updated users connected Called whenever someone connects or disconnects. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_server.html#ad9a4fa699bda4ce299b919229fea6314">satisfyAnyRequests</a> (<a class="el" href="classclient_information.html">clientInformation</a> *user)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Called when a user logs in and there are any requests to satisfy.  <a href="#ad9a4fa699bda4ce299b919229fea6314"></a><br/></td></tr>
<tr><td colspan="2"><h2><a name="pri-attribs"></a>
Private Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="abe5cd00d6bdf190b8fd14b8cba47a0ce"></a><!-- doxytag: member="Server::userSocketStringTable" ref="abe5cd00d6bdf190b8fd14b8cba47a0ce" args="" -->
QHash&lt; QTcpSocket *, QString &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_server.html#abe5cd00d6bdf190b8fd14b8cba47a0ce">userSocketStringTable</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Hashtable that contains the socket as the key and the username that's linked to the socket as the value. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a2ee26c91a91b2cc48f4ea7d5b2463a7b"></a><!-- doxytag: member="Server::userStringClientInformationTable" ref="a2ee26c91a91b2cc48f4ea7d5b2463a7b" args="" -->
QHash&lt; QString, <br class="typebreak"/>
<a class="el" href="classclient_information.html">clientInformation</a> * &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_server.html#a2ee26c91a91b2cc48f4ea7d5b2463a7b">userStringClientInformationTable</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Hashtable that contains the username as the key and the socket as the value. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a145ea61cfa694dee1fedef67f18c1f32"></a><!-- doxytag: member="Server::overallUsers" ref="a145ea61cfa694dee1fedef67f18c1f32" args="" -->
QHash&lt; QString, <br class="typebreak"/>
<a class="el" href="classclient_information.html">clientInformation</a> * &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_server.html#a145ea61cfa694dee1fedef67f18c1f32">overallUsers</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Table to store the friends lists of all the users that at one point have connected. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a77dfd551fe8d6d98b469a3181f11800f"></a><!-- doxytag: member="Server::currentFriendRequests" ref="a77dfd551fe8d6d98b469a3181f11800f" args="" -->
QHash&lt; <a class="el" href="classclient_information.html">clientInformation</a> <br class="typebreak"/>
*, <a class="el" href="classclient_information.html">clientInformation</a> * &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_server.html#a77dfd551fe8d6d98b469a3181f11800f">currentFriendRequests</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Stores the requests from and to the friend requests. <br/></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p><a class="el" href="class_server.html" title="Server helper methods.">Server</a> helper methods. </p>
<p>Container class for the server containing all methods that require server connectivity </p>
</div><hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a4632a3440adaece614f553e84fcc67ef"></a><!-- doxytag: member="Server::addFriend" ref="a4632a3440adaece614f553e84fcc67ef" args="(QString personSendingRequest)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Server::addFriend </td>
          <td>(</td>
          <td class="paramtype">QString&#160;</td>
          <td class="paramname"><em>personSendingRequest</em></td><td>)</td>
          <td><code> [signal]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Signal sent to add a friend. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">personSendingRequest</td><td>The person sending the add friend request </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a21329e064df7799d50e7d54a4b77f1d9"></a><!-- doxytag: member="Server::confirmFriendRequest" ref="a21329e064df7799d50e7d54a4b77f1d9" args="(clientInformation *sentUser, bool isAccepted)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Server::confirmFriendRequest </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classclient_information.html">clientInformation</a> *&#160;</td>
          <td class="paramname"><em>sentUser</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>isAccepted</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [signal]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Signal sent to confirm friend request. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">sentUser</td><td>The user the request was sent to </td></tr>
    <tr><td class="paramname">isAccepted</td><td>Boolean value to determine if the friend request is accepted </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="afeda4b86ff6555c7a5bb012d2f464d19"></a><!-- doxytag: member="Server::incomingConnection" ref="afeda4b86ff6555c7a5bb012d2f464d19" args="(int handle)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Server::incomingConnection </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>handle</em></td><td>)</td>
          <td><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Implements incomingConnection(handle) method in QTcpServer to handle any incoming connections. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">handle</td><td>The function gets called internally and the handle of the socket is passed </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="afd11d6dc30d6fdf3ad5b30feb0c5c4ff"></a><!-- doxytag: member="Server::removeFriend" ref="afd11d6dc30d6fdf3ad5b30feb0c5c4ff" args="(clientInformation *personSendingRequest, bool isValidRequest)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Server::removeFriend </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classclient_information.html">clientInformation</a> *&#160;</td>
          <td class="paramname"><em>personSendingRequest</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>isValidRequest</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [signal]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Signal sent to remove friend. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">personSendingRequest</td><td>The person sending the remove friend request </td></tr>
    <tr><td class="paramname">isValidRequest</td><td>Boolean value to determine if the request is valid </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ad9a4fa699bda4ce299b919229fea6314"></a><!-- doxytag: member="Server::satisfyAnyRequests" ref="ad9a4fa699bda4ce299b919229fea6314" args="(clientInformation *user)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Server::satisfyAnyRequests </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classclient_information.html">clientInformation</a> *&#160;</td>
          <td class="paramname"><em>user</em></td><td>)</td>
          <td><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Called when a user logs in and there are any requests to satisfy. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">The</td><td>user that just logged on and we're checking if they have any pending requests </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a90fbc824ea7de283a02a268b510fd6f2"></a><!-- doxytag: member="Server::sendIsValidFriendRequest" ref="a90fbc824ea7de283a02a268b510fd6f2" args="(QString personToAdd, bool isValid)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Server::sendIsValidFriendRequest </td>
          <td>(</td>
          <td class="paramtype">QString&#160;</td>
          <td class="paramname"><em>personToAdd</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>isValid</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [signal]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Signal sent to check if the friend request was valid or not. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">personToAdd</td><td>The person so add to the friends list </td></tr>
    <tr><td class="paramname">isValid</td><td>Boolean value to determine if the request is valid </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="aa15d49a10e81b6c5f523f02663cdfb9d"></a><!-- doxytag: member="Server::sendIsValidRemoveFriendRequest" ref="aa15d49a10e81b6c5f523f02663cdfb9d" args="(QString personToRemove, bool isValidRequest)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Server::sendIsValidRemoveFriendRequest </td>
          <td>(</td>
          <td class="paramtype">QString&#160;</td>
          <td class="paramname"><em>personToRemove</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>isValidRequest</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [signal]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Signal to check if the remove request was valid. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">personToRemove</td><td>The person the user wishes to remove </td></tr>
    <tr><td class="paramname">isValidRequest</td><td>Boolean value to determine if the request is valid </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ac46199c15eb4e607a039567c5cce900e"></a><!-- doxytag: member="Server::sendMessage" ref="ac46199c15eb4e607a039567c5cce900e" args="(QString fromUser, QString toUser, QString message, QString timeSentAt)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Server::sendMessage </td>
          <td>(</td>
          <td class="paramtype">QString&#160;</td>
          <td class="paramname"><em>fromUser</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">QString&#160;</td>
          <td class="paramname"><em>toUser</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">QString&#160;</td>
          <td class="paramname"><em>message</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">QString&#160;</td>
          <td class="paramname"><em>timeSentAt</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [signal]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Signal to send message. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">fromUser</td><td>The from user </td></tr>
    <tr><td class="paramname">toUser</td><td>The to user </td></tr>
    <tr><td class="paramname">message</td><td>The message being sent </td></tr>
    <tr><td class="paramname">timeSentAt</td><td>The time the message was sent </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a4d28bcf39a54fac77bbd48872035e2c6"></a><!-- doxytag: member="Server::startServer" ref="a4d28bcf39a54fac77bbd48872035e2c6" args="(QHostAddress addr, quint16 port)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Server::startServer </td>
          <td>(</td>
          <td class="paramtype">QHostAddress&#160;</td>
          <td class="paramname"><em>addr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">quint16&#160;</td>
          <td class="paramname"><em>port</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Starts the server with the parameters passed in. Returns bool if successful or not. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">addr</td><td>The host address we want to start the server at </td></tr>
    <tr><td class="paramname">port</td><td>The port we want to start server from </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>/Users/plamontagna/Documents/spa-cs340project/ChatServer/<a class="el" href="server_8h_source.html">server.h</a></li>
<li>/Users/plamontagna/Documents/spa-cs340project/ChatServer/<a class="el" href="server_8cpp.html">server.cpp</a></li>
</ul>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Generated on Tue Nov 29 2011 23:53:09 for N3RD CH4T by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.5.1
</small></address>

</body>
</html>
